import request from '@/utils/request'

export default {
  searchPage(currentPage, pageSize, vipDTO) {
    return request({
      url: `/vip/searchPage/${currentPage}/${pageSize}`,
      method: 'post',
      data: vipDTO
    })
  },

  deleteById(id) {
    return request({
      url: `/vip/deleteById/${id}`,
      method: 'post'
    })
  },

  deletePart(ids) {
    return request({
      url: `/vip/deletePart`,
      method: 'post',
      data: ids
    })
  },

  increase(vip) {
    return request({
      url: `/vip/insert`,
      method: 'post',
      data: vip
    })
  },

  revise(vip) {
    return request({
      url: `/vip/update`,
      method: 'post',
      data: vip
    })
  },

  searchById(id) {
    return request({
      url: `/vip/searchById/${id}`,
      method: 'get'
    })
  }
}

